package com.smart.thrift.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface ThriftService {

    @AliasFor(annotation = ThriftService.class, attribute = "name")
    String value() default "";

    /**
     * 当前service的名字，缺省使用当前类名首字母小写,
     * @return
     */
    @AliasFor(annotation = ThriftService.class, attribute = "value")
    String name() default "";

    /**
     * 当前提供服务的版本号，默认只有一个实现类
     * @return
     */
    double version() default 1.0;
}
